package com.wjw.resource;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 2 * @Author: 小王同学
 * 3 * @Date: 2021/1/3 21:25
 * 4
 */
@Component
@ConfigurationProperties(prefix = "file")   // 配置属性文件中的前缀
@PropertySource("classpath:file-upload-prod.properties")
public class FileUpload {
    /**
     * 属性文件中的属性
     */
    private String imageUserFaceLocation;

    private String imageServerUrl;

    public String getImageUserFaceLocation() {
        return imageUserFaceLocation;
    }

    public void setImageUserFaceLocation(String imageUserFaceLocation) {
        this.imageUserFaceLocation = imageUserFaceLocation;
    }

    public String getImageServerUrl() {
        return imageServerUrl;
    }

    public void setImageServerUrl(String imageServerUrl) {
        this.imageServerUrl = imageServerUrl;
    }
}
